package com.e3.web.core.client;

import com.google.gwt.user.client.DOM;
import com.google.gwt.user.client.Element;

public class DOMHelper {

	public static String getModuleCode(){
		return getElementAttributeValue("moduleCode");
	}
	
	public static String getModuleName(){
		return getElementAttributeValue("moduleName");
	}
	
	public static String getModulePath(){
		return getElementAttributeValue("modulePath");
	}
	
	public static String getElementAttributeValue(String attr){
		Element domEl = DOM.getElementById(attr);
		return domEl.getAttribute("value");
	}
}
